package com.hpf.commons.enums;


/**
 * @description:
 * @datetime: 2020/8/14 23:49
 * @author: huangpengfei
 */
public enum ResultCode {

    SUCCESS(200, "成功"),

    PAGE_NOT_FOUND(404, "页面找不到"),

    FAIL(500, "系统内部错误");

    private Integer code;

    private String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
